-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Fix style of the first ten solutions for Project Euler #3242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix style of the first ten solutions for Project Euler #3242
Conversation
Travis tests have failedHey @darkstar, TravisBuddy Request Identifier: 11067570-0cd7-11eb-b943-5b98ff54aa42 |
Travis tests have failedHey @darkstar, TravisBuddy Request Identifier: c7b13200-0cd8-11eb-b943-5b98ff54aa42 |
Okay, I had to remove the doctests from Also I had to remove the prime test for 0 (which is not prime) since many solutions didn't properly check for that and I didn't want to change the implementation |
We really appreciate you doing this but the guidelines for maintaining consistency in Project Euler are still in progress. So I will keep this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Announcement:
This message is sent to all pull requests which are OPEN, NOT MERGED, not containing 'wontfix' label and contains 'Project Euler' or 'Project' or 'Euler' (case doesn't matter) in their title. If this message doesn't apply to your pull request, please ignore this.
Message:
This is to notify all the users submitting a pull request for the Project Euler solution that the README.md file has been updated with all the style requirements necessary for the directory and solution files. Please read through it and make all the necessary changes required to your submission.
- Unify the header docstring, and add reference URLs to wikipedia or similar - Fix docstrings to be properly multilined - Add newlines where appropriate - Add doctests where they were missing - Remove doctests that test for the correct solution - fix obvious spelling or grammar mistakes in comments and exception messages - Fix line endings to be UNIX. This makes two of the files seem to have changed completely - no functional changes in any of the solutions were done (except for the spelling fixes mentioned above)
I fixed all issues that were not conforming to the styleguide. This is still only for the first 10 projects but once this gets committed I'll gladly do the rest too There is still the issue of the broken main function though, I'm not sure how you want it fixed as the bug is in the style guide's template. But once that is fixed in the guide, I'll incorporate it into the PR |
Travis tests have failedHey @darkstar, TravisBuddy Request Identifier: 437282e0-0ffe-11eb-8acb-27a1e4e1eb88 |
Can you specify what the bug is in the template? |
I posted it here: 2d7e08e#comments This code does not work:
it gives a syntax error when the file is run through python:
But I left it in anyway since it might just be my setup (Windows-related, python 3.6.3 related, whatever) |
That might be the version problem. Which version of Python are you running? $ python -V This repository assumes you're on the latest version of Python. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! Thanks for doing this :)
3.6.3 I'll be updating to see if that helps. I thought 3.6 was recent enough, but now I see we're already at 3.9, so yeah, probably a problem on my side |
…#3242) * Fix style of the first ten solutions for Project Euler - Unify the header docstring, and add reference URLs to wikipedia or similar - Fix docstrings to be properly multilined - Add newlines where appropriate - Add doctests where they were missing - Remove doctests that test for the correct solution - fix obvious spelling or grammar mistakes in comments and exception messages - Fix line endings to be UNIX. This makes two of the files seem to have changed completely - no functional changes in any of the solutions were done (except for the spelling fixes mentioned above) * Fix docstrings and main function as per Style Guide
…#3242) * Fix style of the first ten solutions for Project Euler - Unify the header docstring, and add reference URLs to wikipedia or similar - Fix docstrings to be properly multilined - Add newlines where appropriate - Add doctests where they were missing - Remove doctests that test for the correct solution - fix obvious spelling or grammar mistakes in comments and exception messages - Fix line endings to be UNIX. This makes two of the files seem to have changed completely - no functional changes in any of the solutions were done (except for the spelling fixes mentioned above) * Fix docstrings and main function as per Style Guide
…#3242) * Fix style of the first ten solutions for Project Euler - Unify the header docstring, and add reference URLs to wikipedia or similar - Fix docstrings to be properly multilined - Add newlines where appropriate - Add doctests where they were missing - Remove doctests that test for the correct solution - fix obvious spelling or grammar mistakes in comments and exception messages - Fix line endings to be UNIX. This makes two of the files seem to have changed completely - no functional changes in any of the solutions were done (except for the spelling fixes mentioned above) * Fix docstrings and main function as per Style Guide
…#3242) * Fix style of the first ten solutions for Project Euler - Unify the header docstring, and add reference URLs to wikipedia or similar - Fix docstrings to be properly multilined - Add newlines where appropriate - Add doctests where they were missing - Remove doctests that test for the correct solution - fix obvious spelling or grammar mistakes in comments and exception messages - Fix line endings to be UNIX. This makes two of the files seem to have changed completely - no functional changes in any of the solutions were done (except for the spelling fixes mentioned above) * Fix docstrings and main function as per Style Guide
Describe your change:
This changes the style of the first 10 Project Euler solutions akin to the changes requested in #2875 and #2880:
Checklist:
Fixes: #{$ISSUE_NO}
.@dhruvmanila Please comment if you have any input